﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/ViewMasterPage1.Master" Inherits="System.Web.Mvc.ViewPage<ComputerShopE3.Models.RAM>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	<title>RAM</title>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2 align="center">CHỉnh sửa RAM</h2>

    <%= Html.ValidationSummary() %>

    <% using (Html.BeginForm()) {%>
    <fieldset>
        <legend>Thông tin</legend>
        
        <%if (ViewData["error"] == null)
              Html.RenderPartial("EditProductPartialView", Model.SAN_PHAM);
          else
          %>
           <%=ViewData["error"]%>
          
           
           
        <p>
            <label for="Bus">
                Bus:</label>
            <%= Html.TextBox("linhkien.ram.Bus", Model.Bus) %>
            <%= Html.ValidationMessage("Bus", "*") %>
        </p>
        <p>
            <label for="DungLuong">
                Dung lượng:</label>
            <%= Html.TextBox("linhkien.ram.DungLuong", Model.DungLuong) %>
            <%= Html.ValidationMessage("DungLuong", "*") %>
        </p>
        <p>
            <input type="submit" value="Lưu thay đổi" />
        </p>
    </fieldset>
    <% } %>

    <div>
        <%=Html.ActionLink("Trở lại danh mục", "Index") %>
    </div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="PersonalMenu" runat="server">
</asp:Content>

